package com.example.commond.order;

import java.util.ArrayList;
import java.util.List;

/**
 * @author ycd0075
 * @date 2024-01-30 10:10
 * @desc 客人有两个方法，一个是下单，一个是下单结束
 */
public class Guest {

    private List<IChuFangShiFu> order = new ArrayList<>();


    public void order(IChuFangShiFu shifu) {
        order.add(shifu);
    }


    public void orderFinish() {
        order.forEach(IChuFangShiFu::readyCook);
    }
}
